package org.example.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @TableName d_apartment
 */
@TableName(value ="d_apartment")
@Data
@Schema(name = "房间DApartment", description = "宿舍房间信息")
public class DApartment implements Serializable {
    @TableId
    @Schema(description = "房间ID")
    private Integer aid;

    @Schema(description = "房间号")
    private String apartmentId;

    @Schema(description = "房间楼号")
    private String buildingId;

    @Schema(description = "房间类型")
    private String apartmentType;

    @Schema(description = "房间容量")
    private Integer numberOfPeople;

    @Schema(description = "房间剩余床位数")
    private Integer vacancy;

    @Schema(description = "房间修改日期")
    private Date updateDate;

    @Schema(description = "房间描述")
    private String apartmentDesc;

    @Schema(description = "房间状态")
    private Integer apartmentStatus;

    @TableField(exist = false)
    @Schema(description = "房间费用合计")
    private Double amount;

    @TableField(exist = false)
    @Schema(description = "房间内的人员")
    private List<DStaff> dStaffs;

    @TableField(exist = false)
    @Schema(description = "房间内的人员名称")
    private String staffNames;

    @TableField(exist = false)
    @Schema(description = "多个房间资产")
    private List<DAsset> dAssets;

    @TableField(exist = false)
    @Schema(description = "房间资产")
    private Double assets;

    private static final long serialVersionUID = 1L;
}